<?php
namespace app\admin\controller;


use think\exception\ValidateException;

class Sitepro extends Base
{
    protected $mod;
    protected function initialize()
    {
        $this->mod=\app\admin\model\Sitepro::class;
    }

    public function read(){
        $res=$this->mod::find(1);
        return $this->success('ok',$res);
    }

    public function update(){
        $data = $this->request->param();
        $data['id']=1;
        $this->mod::update($data);
        return $this->success('更新成功');
    }



}